package com.fhz.mvvm.dataSource.retrofit

import androidx.lifecycle.LiveData
import com.fhz.loginmvvm.callback.ApiResponse
import com.fhz.module_main.api.KaiYanServerApi
import com.fhz.module_main.api.YaoServiceApi
import com.fhz.module_main.entity.RecommendEntity
import com.fhz.module_main.entity.UserEntity
import javax.inject.Inject

/**
 * 时间:2023/3/27
 * @author Mr.Feng
 * 简述: 远程请求,使用api
 */
class RecommendRetrofitService @Inject constructor(private val serviceApi: KaiYanServerApi) {

    //从服务器请数据
    fun getRecommend() : LiveData<ApiResponse<RecommendEntity>>{
       return serviceApi.getRecommend()
    }


}